<?php
namespace Modules\Admin\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Cache;
use Modules\Admin\Models\Config as ConfigModel;
class CommonController extends Controller
{
    public function __construct(){
		$config = Cache::get('config');
		if(!$config){
			$config = ConfigModel::with('image_one')->find(1)->toarray();
			Cache::put('config',$config,3600);
		}
	}
}
